package dao;

import pojo.Book;
import java.util.List;

public interface BookDao {
    boolean addBook(Book book);
    boolean deleteBook(int id);
    boolean updateBook(Book book);
    Book getBookById(int id);
    List<Book> getAllBooks();
    List<Book> getBooksByCondition(String name, String author, int offset, int pageSize);
    int countBooksByCondition(String name, String author);
}